package com.yao.mapper;

import com.yao.domain.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMapper {

    @Select({"SELECT * FROM sys_role r,sys_user_role ur WHERE r.id=ur.roleId AND ur.userId=#{uid}"})
    List<Role> findByUserId(int uid);
}
